package com.huitu.whht.base.core.api.geo.wiu.service.impl;

import com.huitu.annotation.BusinessService;
import com.huitu.whht.api.core.common.annotations.SzyCoreApiDao;
import com.huitu.whht.api.core.common.annotations.SzyCoreApiService;
import com.huitu.whht.base.core.api.geo.wiu.dao.GeoWiuCoreDao;
import com.huitu.whht.base.core.api.geo.wiu.entities.GeoWiuQo;
import com.huitu.whht.base.core.api.geo.wiu.service.IGeoWiuCoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 说明: 取用水户空间信息Service接口默认实现,表名称: GEO_WIU_5T <br/>
 * 日期: 2018-07-14
 *
 * @author ZhangAY
 */
@Service
@SzyCoreApiService
@BusinessService
public class GeoWiuCoreServiceImpl implements IGeoWiuCoreService {

    @Autowired
    @SzyCoreApiDao
    private GeoWiuCoreDao geoWiuCoreDao;

    /**
     * 根据主键查询
     *
     * @param wiuCd 取用水户代码
     * @return 查询结果Map
     */
    @Override
    public Map<String, Object> selectByPrimaryKey(String wiuCd) {
        return geoWiuCoreDao.selectByPrimaryKey(wiuCd);
    }

    /**
     * 根据条件查询
     *
     * @param filter 查询条件
     * @return 查询结果List
     */
    @Override
    public List<Map<String, Object>> selectList(GeoWiuQo filter) {
        return geoWiuCoreDao.selectList(filter);
    }

}
